<!-- Recently Added Blog Posts Starts -->

<div class="some_blank_space"></div>

<div class="content-skeleton">


	<?php

	foreach ($get_wisata_views as $key => $get_wisata_view) {
	?>
	<!-- Sidebar Starts Here -->
	<div id="sidebar">

		<!-- Portfolio Navigation 
		<div id="portfolio-navigation-wrap">
			<a href="<?php echo base_url(); ?>modul/portofolio/view/11"><i class="fa fa-chevron-left"></i></a>
			<a href="<?php echo base_url(); ?>modul/portofolio"><i class="fa fa-align-justify"></i></a>
			<a href="<?php echo base_url(); ?>modul/portofolio/view/11"><i class="fa fa-chevron-right"></i></a>
		</div>

		<div class="clear"></div>-->

		<!-- Project Summary -->
		<div id="project-summary">
			<p><span><strong><font size="4"><?php echo $get_wisata_view->judul_wisata; ?></font></strong></span></p>
			<p><span>Category: </span><span><strong><?php echo $get_wisata_view->nama_kategori_sub; ?></strong></span></p>
			<p><span>Alamat: </span><span><strong><?php echo $get_wisata_view->alamat_wisata; ?></strong></span></p>
			<p><span>Kota/Provinsi: </span><span><strong><?php echo $get_wisata_view->kota_kabupaten." / ".$get_wisata_view->provinsi; ?></strong></span></p>
			<p><span>Fasilitas: </span><span><strong><?php echo $get_wisata_view->fasilitas_wisata; ?></strong></span></p>
			<p><span>Harga: </span><span><strong><?php if($get_wisata_view->harga_tiket_wisata=='FREE') echo "FREE"; else echo "RP " . number_format($get_wisata_view->harga_tiket_wisata); ?></strong></span></p>
			<p><span>Kontak: </span><span><strong><?php echo $get_wisata_view->kontak_wisata; ?></strong></span></p>
		</div>

		<div class="titlePageSprite star-box-giga-star"> <?php echo number_format($get_rating,1); ?> </div>			
		<div class="rating-box-2">
			<form method="post" action="<?php echo base_url(); ?>modul/wisata/rate">
         	Your Rating<br>
         	<input type="hidden" name="id_wisata" value="<?php echo $this->uri->segment(4); ?>">
         	<select name="value_rate">
         		<option value="5">5</option>
         		<option value="4">4</option>
         		<option value="3">3</option>
         		<option value="2">2</option>
         		<option value="1">1</option>
         	</select>
         	<input type="submit" value="Rate" style="margin-top:-2px;">
         	</form>
         </div>

	</div>				
	<!-- Sidebar Ends -->


	<div id="primary-portfolio-area">

		<!-- Recent Posts List -->
				
				<div class="flexslider">
					<ul class="slides">
						<li>
							<img id="post_thumb" src="<?php echo base_url() . $get_wisata_view->url_gambar_wisata; ?>" alt="" />
						</li>
						<?php foreach ($get_foto_slide as $key => $get_foto_slide) { ?>
						<li>
							<img id="post_thumb" src="<?php echo base_url() . $get_foto_slide->url_wisata_foto; ?>" alt="" />
						</li>
						<?php } ?>
					</ul>							
				</div>

		<!-- <div id="rating_1" class="ratings">
                <div class="star_1 ratings_stars"></div>
                <div class="star_2 ratings_stars"></div>
                <div class="star_3 ratings_stars"></div>
                <div class="star_4 ratings_stars"></div>
                <div class="star_5 ratings_stars"></div>
                <div class="total_votes">vote data</div>
         </div> -->

		<h3>Deskripsi Wisata: </h3>

		<p><?php echo $get_wisata_view->content_wisata; ?></p>

		<div class="some_blank_space"></div>							

		<!-- Go to www.addthis.com/dashboard to customize your tools -->
		<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-53a98d71398d88b9"></script>
		<div class="addthis_native_toolbox"></div>
	</div><!-- /.primary-content-area -->

	<!-- Comments Area -->
			<div id="comments" class="comments-area" style="float:left">
				<br><br><?php if($get_row_comment>0){ ?>
				<h4 class="comments-title">Comments</h4>

				<!-- Comment List Starts -->
				<ol class="commentlist">
					<?php foreach ($get_comments as $key => $get_comment) { ?>
					<li id="li-comment-1">
						<div class="comment">
							<div class="comment-author-avatar">
								
								<?php
								$d = $this->db->query("select * from member where username_member='$get_comment->name'");
								$q = $d->row();

								if(isset($q->foto_member) && $q->foto_member!=''){
								?>
								<img src="<?php echo base_url() . $q->foto_member; ?>" class="avatar" alt="" />
								<?php
								} else {
								?>
								<img src="<?php echo base_url(); ?>assets/theme1/images/logo-square.png" class="avatar" alt="" />
								<?php	
								}

								?>
							</div>
							<div class="comment-content">
								<h5 class="comment_author"><?php echo $get_comment->name; ?></h5>
								<span class="comment-time"><?php echo $get_comment->date_comment; ?></span>
								<p>
								<?php echo $get_comment->content; ?>	
								</p>
							</div>
						</div>
					</li>
					<?php } ?>
				</ol><!-- /.Comment List Ends -->
				<?php } ?>

				<!-- Respond/Comment Form -->
				<div id="respond" class="comment-respond">
					<h4 class="comment-reply-title">Leave a Reply</h4>
					<?php echo $benar; ?>
					<form method="post" id="commentform" />
					<?php
					$logged_in = $this->session->userdata('logged_in');
		            $nama=$logged_in['username_member'];
		            if(!isset($logged_in) || $logged_in != true){
					?>
						<p class="comment-form-author">
							<label for="author">Name <span class="required">*</span></label><br /> 
							<input id="author" name="name" placeholder="Name" type="text" size="30" aria-required='true' />
						</p>
						<p class="comment-form-email">
							<label for="email">Email <span class="required">*</span></label><br />
							<input id="email" name="email" type="text" value="" size="30" aria-required='true' />
						</p>
						<p class="comment-form-url">
							<label for="url">Website</label><br />
							<input id="url" name="url" type="text" value="" size="30" />
						</p>
					<?php
					} else {
					?>
					
						<label for="author">Username : <b><?php echo $nama; ?></b></label><br />
						<input name="name" type="hidden" value="<?php echo $nama; ?>" />
						<input name="email" type="hidden" value="" />
						<input name="url" type="hidden" value="" />
					<?php } ?>
					<p class="comment-form-comment">
						<label for="comment">Comment</label> 
						<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>
					</p>						
					<p>
						<label>Captcha:</label><br>
           				<?php echo $recaptcha_html; ?>
					</p>						
					<p class="form-submit">							
						<input name="submit" type="submit" id="submit" value="Post Comment" />
						<input type='hidden' name='comment_post_ID' value='94' id='comment_post_ID' />
						<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
					</p>

				</form>

			</div>
			<!-- /respond comment area ends -->

	<?php
	}
	?>

	<!-- Clear Floating Element -->
	<div class="clear"></div>

</div><!-- /.content-skeleton -->	